.text-ellipsis (@line: 1) {
  overflow: hidden;

  & when(@line =1) {
    overflow: hidden;
    white-space: nowrap;
    -webkit-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
  }

  & when(@line > 1) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: @line;

    /* 数字是几就显示几行 */
    -webkit-box-orient: vertical;
  }
}
